The mod file named "dynamics.mod" works, but the mod file named "dynamicsold.mod" does not.
The difference lies in the way in which I specify the model-local variables. In "dynamicsold.mod",
model-local variables named prod_@{j} is generated (row 38-43). They are deleted in "dynamics.mod",
and row 73-97 are revised correspondingly. It works then.